package model;

import java.sql.Timestamp;

public class User {
    private int uid;
    private  String username;
    private String password;
    private int role_id;
    private Timestamp createtime;
    private Timestamp modifytime;

    public User() {
    }

    public User(String username, String password, int role_id, Timestamp createtime) {
        this.username = username;
        this.password = password;
        this.role_id = role_id;
        this.createtime = createtime;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Timestamp getModifytime() {
        return modifytime;
    }

    public void setModifytime(Timestamp modifytime) {
        this.modifytime = modifytime;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role_id=" + role_id +
                ", createtime=" + createtime +
                ", modifytime=" + modifytime +
                '}';
    }
}
